<template>
  <div class="box"> 
    <!-- 礼包 -->
    <div id="jingcai">
      <div class="huodong">我的礼包</div>
      <span class="iconfont icon-youjiantou-tianchong"></span>
    </div>
    <!-- 腥红之月 -->
    <div class="xinghong">
      <div class="zhiyue" v-for="(v, i) in arr1" :key="i">
        <div class="zuo">
          <div class="picture">
            <img :src="v.img" alt="" />
          </div>
          <div class="xinghong1">
            <p class="seven">{{ v.text }}</p>
            <p class="dou">{{ v.text1 }}</p>
          </div>
        </div>
        <div class="you">
          <div class="dui">兑换</div>
        </div>
      </div>
    </div>
    <!-- 精选 -->
    <div id="jingxuan">
      <div class="zixun">精选资讯</div>
      <span class="iconfont icon-youjiantou-tianchong"></span>
    </div>
    <!-- 给上单创造机会 -->
    <div id="Topdan">
      <div class="pinglun">
        <div class="tui">英雄联盟:当上单创造机会时,请别后退</div>
        <div class="xiamian">
          <span class="lK">英雄联盟落空</span>
          <span class="iconfont icon-xiaoyanjing">5</span>
          <span class="iconfont icon-dianzan">0</span>
        </div>
      </div>
      <div class="tupian">
        <img src="20.jpg" alt="" />
      </div>
    </div>
    <!-- 热门活动 -->
    <div id="rEmen">
      <div class="Remen">热门活动</div>
      <span class="iconfont icon-youjiantou-tianchong"></span>
    </div>
    <!-- 冲击之刃 -->
  </div>
</template>

<script>
import getapi from "@/apis/getapi.js";
export default {
  mounted() {
    getapi("/xiaojiang").then((ok) => {
      this.arr1 = ok.data.data7;

    //   console.log(ok);
    });
  },
  data() {
    return {
      arr1: [],
    };
  },
};
</script>

<style scoped>
.box{
  width: 3.5rem;
  margin:  0 auto;
}
/* 礼包 */
#jingcai {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 0.2rem;
  /* background-color: burlywood; */
  margin-top: 0.05rem;
}
.huodong {
  font-size: 0.18rem;
  line-height: 0.2rem;
  font-weight: 900;
}
#jingcai span {
  font-size: 0.18rem;
  line-height: 0.2rem;
}
/* 腥红之月 */
.xinghong {
  width: 100%;
  height: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background-color: aqua; */
  margin-top: 0.15rem;
}
.zhiyue {
  width: 100%;
  height: 0.7rem;
  /* background-color: bisque; */
  display: flex;
  justify-content: space-between;
}
.zuo {
  width: 55%;
  height: 0.7rem;
  /* background-color: blueviolet; */
  display: flex;
  justify-content: space-between;
}
.picture {
  width: 45%;
  height: 00.7rem;
  /* background-color: bisque; */
}
.picture img {
  width: 100%;
  height: 100%;
}
.xinghong1 {
  width: 55%;
  height: 00.7rem;
  /* background-color: rgb(177, 54, 177); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.seven {
  /* background-color: blue; */
  height: 0.5rem;
  width: 100%;
  font-size: 0.12rem;
  line-height: 00.5rem;
  text-align: center;
}
.dou {
  /* background-color: brown; */
  height: 0.2rem;
  width: 100%;
  text-align: center;
  line-height: 00.2rem;
}
.you {
  width: 25%;
  height: 0.7rem;
  /* background-color: cadetblue; */
  position: relative;
}
.dui {
  width: 100%;
  height: 0.3rem;
  line-height: 0.7rem;
  background-color: #fed140;
  border-radius: 0.3rem;
  position: absolute;
  margin-top: 21%;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 0.16rem;
}
/* 精选资讯 */
#jingxuan {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 0.2rem;
  /* background-color: burlywood; */
  margin-top: 0.05rem;
}
.zixun {
  font-size: 0.18rem;
  line-height: 0.2rem;
  font-weight: 900;
}
#jingxuan span {
  font-size: 0.18rem;
  line-height: 0.2rem;
}
/* Topdan */
#Topdan {
  width: 100%;
  height: 0.8rem;
  margin-top: 0.1rem;
  /* background-color: aquamarine; */
  display: flex;
  justify-content: space-between;
  margin-bottom: 00.24rem;
}
.pinglun {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tui {
  font-size: 0.16rem;
  font-weight: 500;
}
.xiamian {
  color: #cecece;
}
.xiamian :nth-child(2) {
  margin-left: 0.1rem;
  margin-right: 0.1rem;
}
/* 图片 */
.tupian {
  background-color: bisque;
  width: 80%;
}
.tupian img {
  width: 100%;
  height: 100%;
}
/* 热门活动 */
#rEmen {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 0.2rem;
  /* background-color: burlywood; */
  margin-top: 0.05rem;
  margin-bottom: 00.15rem;
}
.Remen {
  font-size: 0.18rem;
  line-height: 0.2rem;
  font-weight: 900;
}
#rEmen span {
  font-size: 0.18rem;
  line-height: 0.2rem;
}
</style>